/* =============整体框架样式============= */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style-type: none;
}
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    height: 50px;
    padding: 0 10vw;
    margin-bottom: 5px;
    background-color: #fff;
    color: #333;
    box-shadow: 0px 1px 8px 4px #0000008b;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
main {
    background-color: #eee;
    padding: 0 10vw;
    display: flex;
    flex-direction: column;
    flex: 1;
}
footer {
    height: 50px;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =============头部样式============= */
header h2 {
    color: red;
    margin-right: auto;
}
header p {
    margin-left: 15px;
}
header .user {
    color: red;
}
header .top {
    cursor: pointer;
}
header .top span {
    border: none;
    background-color: #ff4040;
    color: #fff;
    border-radius: 50%;
    height: 16px;
    width: 16px;
    margin: 1px;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    display: none;
}
.top:hover {
    background-color: red;
    color: #fff;
}

/* =============主体样式============= */
main .box {
    height: 300px;
    width: 100%;
    margin-top: 20px;
    background-color: white;
    box-shadow: 1px 1px 1px 1px #00000033;
    display: flex;
}
main .box > div:last-child{
    flex: 1;
    min-width: 0;             /* 防止文字溢出 */
}
main .box > img{
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin: 0px 100px;
}
main .box h1 {
    margin: 15px 0px 10px 10px;
}
main .box h2 {
    margin: 10px;
    color: red;
}
main .box p {
    margin: 15px 10px;
}
main .box button {
    margin: 10px;
    background: linear-gradient(135deg, #f53a3a, #ff0000);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background .25s;
}
main .box button:hover {
    background: linear-gradient(135deg, #f95e5e, #f72f2f);
}

/* =============放大镜============= */
.show-box{
    width: 300px;
    height: 300px;
    overflow: hidden;
    position: absolute;
    margin-right: 20px;
    left: 600px;
    display: none;
}
.show-img{
    width: 600px;
    height: 600px;
    position: absolute;
    top: 0;
    left: 0;
}

